<%--
  Created by IntelliJ IDEA.
  User: ZYT
  Date: 2015/6/17
  Time: 20:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>


<html>
<head>
    <title>用户管理</title>
</head>
<body>
<form:form action="index4.do" method="get" commandName="model">
    <lable>用户管理</lable>
    <input type="submit" value="返回主页"><br>
</form:form>
<form:form action="create.do" method="get" commandName="model">
    <input type="submit" value="新建用户"><br>
</form:form>
<form:form action="" method="get" commandName="model">
    <table border="1">
        <tr>
            <td>用户名</td>
            <td>姓名</td>
            <td>角色</td>
            <td>区域</td>
            <td>操作</td>
        </tr>


        <c:forEach  items="${list}" var="list">
            <tr>
                <td>${list.username} </td>
                <td>${list.name}</td>
                <td>${list.role_id}</td>
                <td>${list.area_id}</td>
                <td><a href="edit.do?username=${list.username}">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="delete.do?username=${list.username}">删除</a></td>
            </tr>

        </c:forEach>

    </table>
</form:form>
</body>
</html>
